package com.baoyouqun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baoyouqun.domain.Enum.DemandInteractStatusEnum;
import com.baoyouqun.domain.Enum.DemandInteractTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName(value = "demand_interact", autoResultMap = true)
public class DemandInteract implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "关联需求ID")
    private String demandId;

    @ApiModelProperty(value = "操作用户ID")
    private String userId;

    @ApiModelProperty(value = "操作类型（1-点赞，-1-点踩）")
    private DemandInteractTypeEnum type;

    @ApiModelProperty(value = "状态（0-取消，1-有效）")
    private DemandInteractStatusEnum status;

    @ApiModelProperty(value = "操作时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "状态更新时间")
    private LocalDateTime updateTime;


}